﻿<%@ Page Title="Catalogo General" Language="VB" MasterPageFile="~/Plantilla1.master" AutoEventWireup="false" CodeFile="Catalogo.aspx.vb" Inherits="Catalogo" %>
<%@ MasterType VirtualPath="~/Plantilla1.master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 


    <table style="width:90%; text-align:center;" >
        <tr>
        <td style="width:1%;"></td>
        <td style="width:10%;"></td>
        <td style="width:24%;"></td>
        <td style="width:10%;"></td>
        <td style="width:24%;"></td>
        <td style="width:20%;"></td>
        <td style="width:1%;"></td>
     </tr>
        <tr>
            <td></td>
            <td  colspan="5" align="center">
                    <asp:Label ID="Label1" runat="server" Text="List of Cell Phones" 
                    style="font-size: xx-large; color: #418BA4; font-family: Garamond; background:images/enun_bg.gif;"></asp:Label>
                    </td>
           </tr>
      <tr>
            <td colspan="7"><div style="height: 6px"></div> </td>
        </tr>
        <tr>
        <td></td>
            <td colspan="5">
               <fieldset>
                <legend> Busqueda </legend>
                      <table width="100%"> 
                       <tr>
                            <td style="width:5%;"></td>
                            <td style="width:10%;"></td>
                            <td style="width:20%;"></td>
                            <td style="width:10%;"></td>
                            <td style="width:20%;"></td>
                            <td style="width:20%;"></td>
                            <td style="width:5%;"></td>
                       </tr>
                       <tr>
                            <td></td>
                               <td valign="middle" align="right">
                                    <asp:Label ID="lblModelo" runat="server" Text="Tipo: " CssClass="contenido"></asp:Label>
                               </td>
                               <td > 
                                    <asp:DropDownList ID="cboTipo" runat="Server" Width="90%" CssClass="contenido"></asp:DropDownList>
                               </td>
                               <td align="right">
                                    <asp:Label ID="lblColor" runat="server" Text="Color: " CssClass="contenido"></asp:Label>
                               </td>
                               <td >
                                    <asp:DropDownList ID="cboColor" runat="server" Width="90%" CssClass="contenido"></asp:DropDownList>
                               </td>
                               <td rowspan="3">
                                <asp:ImageButton ID="btnConsulta" runat="server"  
                                       ImageUrl="~/Imagenes Pagina/Buscar.jpg"/>
                               </td>
                               <td></td>
                </tr>
                                                                                                                                                        <tr>
            <td></td>
            <td align="right"> <asp:Label ID="LblPrecio" runat="server" Text="Precio: " CssClass="contenido"></asp:Label> </td>
            <td colspan="3" align="left">
                &nbsp;<asp:DropDownList ID="CboPrecio" runat="server" CssClass="contenido" Width="97%">
                    <asp:ListItem Value="0">------- Todos ------</asp:ListItem>
                    <asp:ListItem Value="1">Hasta S/.200</asp:ListItem>
                    <asp:ListItem Value="2">S/.200 a S/.500</asp:ListItem>
                    <asp:ListItem Value="3">S/.500 a S/.1.000</asp:ListItem>
                    <asp:ListItem Value="4">S/.1.000 a S/.1.500</asp:ListItem>
                    <asp:ListItem Value="5">S/.1.500 a S/.1.000</asp:ListItem>
                    <asp:ListItem Value="6">S/.2.000 a S/.3.000</asp:ListItem>
                    <asp:ListItem Value="7">S/.3.000 a S/.5.000</asp:ListItem>
                    <asp:ListItem Value="8">S/.5.000 a Mas</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td></td>
        </tr>
                                                                                        <tr>
            <td></td>
            <td align="right"> <asp:Label ID="lblMarca" runat="server" Text="Marca: " CssClass="Contenido" ></asp:Label> </td>
            <td> <asp:DropDownList ID="cboMarca" runat="server" Width="90%" CssClass="contenido"></asp:DropDownList> </td>
            <td align="right"> <asp:Label ID="lblFiltro" runat="server" Text="Filtro: " CssClass="contenido"></asp:Label></td>
            <td> <asp:RadioButtonList runat="server" ID="RdFiltro" RepeatDirection="Horizontal" CssClass="contenido">
                <asp:ListItem Selected="True" Value="01">Asc</asp:ListItem>
                <asp:ListItem Value="02">Desc</asp:ListItem>
                </asp:RadioButtonList> </td>
        </tr>
                </table>
                </fieldset>
            </td>
            <td></td>
        </tr>
        <tr>
            <td></td>
            <td colspan="5">
                <asp:GridView ID="GridView1" runat="server" Width="100%" 
                    AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" 
                    GridLines="None" AllowPaging="True" PageSize="6">
                    <AlternatingRowStyle BackColor="White" ForeColor="#7DA2B1" />
                    <Columns>

                        <asp:CommandField ButtonType="Image" 
                            SelectImageUrl="~/images/shoppingcart.png" SelectText="Cargar" 
                            ShowSelectButton="True" />
                   
                        <asp:TemplateField>
                            <ItemTemplate>
                                <table style="width:100%;">
                                    <tr>

                                        <td rowspan="7" align="left">
                                            <asp:Image ID="Image3" runat="server" 
                                                ImageUrl='<%# Eval("cod_equipo","cellFotos/{0}.png") %>' />
                                        </td>
                                        <td class="style1" colspan="2">
                                            <asp:Label ID="lblMarca" runat="server" style="text-align: left; font-family: Garamond; font-size: large; font-weight: 700;" 
                                                Text='<%# Bind("name_marca") %>'></asp:Label>
                                            <br />
                                        </td>
                                    </tr>
                                    <tr style="display:none;">
                                        <td class="style2">
                                            <asp:Label ID="lblCodigoEquipo" runat="server" CssClass="contenido" Text="Código del Equipo: "></asp:Label>
                                            </td>
                                        <td>
                                            <asp:Label ID="lblCodigo" runat="server" Text='<%# Bind("cod_equipo") %>' 
                                                CssClass="contenido"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style2">
                                        <asp:Label ID="Label3" runat="server" CssClass="contenido" Text="Modelo: "></asp:Label>
                                            
                                        </td>
                                        <td>
                                            <asp:Label ID="lblModelo" runat="server" Text='<%# Bind("Equip_desc") %>' 
                                                 CssClass="contenido"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style2">
                                          <asp:Label ID="Label4" runat="server" CssClass="contenido" Text="Tipo: "></asp:Label>
                                             </td>
                                        <td>
                                            <asp:Label ID="lblTipo" runat="server" Text='<%# Bind("tipo_equipo") %>' 
                                                 CssClass="contenido"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style2">
                                        <asp:Label ID="Label5" runat="server" CssClass="contenido" Text="Precio: "></asp:Label>
                                             </td>
                                        <td>
                                            
                                            <% If CType(Session.Item("cboMoneda"), String) = "01" Then%>
                                                <asp:Label ID="lblModena" runat="server" Text='S/. ' 
                                                ForeColor="#CC3300"  CssClass="contenido" ></asp:Label>
                                            <% ElseIf CType(Session.Item("cboMoneda"), String) = "02" Then%>
                                                <asp:Label ID="lblModena2" runat="server" Text='$. ' 
                                                ForeColor="#CC3300"  CssClass="contenido"></asp:Label>
                                            <%Else%>
                                                <asp:Label ID="Label2" runat="server" Text='S/. ' 
                                                ForeColor="#CC3300"   CssClass="contenido"></asp:Label>
                                                
                                             <% End If%>

                                            <asp:Label ID="lblPrecio" runat="server" Text='<%# Bind("precio") %>' 
                                                ForeColor="#CC3300" CssClass="contenido"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style1" colspan="2">
                                            &nbsp;</td>
                                    </tr>
                                </table>
                               
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <EditRowStyle BackColor="#999999" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#7DA2B1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#7DA2B1" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#E9E7E2" />
                    <SortedAscendingHeaderStyle BackColor="#506C8C" />
                    <SortedDescendingCellStyle BackColor="#FFFDF8" />
                    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                </asp:GridView>
            </td>
            <td></td>
        </tr>
    </table>
</asp:Content>

